<template>
  <!-- 下面的写法是vue2中的写法 -->
  <!-- <keep-alive include="Home">
    <router-view></router-view>
  </keep-alive> -->

  <!-- <router-view v-slot="{ Component }">
    <keep-alive include="Home">
      <component :is="Component" />
    </keep-alive>
  </router-view> -->
  <router-view v-slot="{ Component }">
  <keep-alive  include="Home">
    <component :is="Component" />
  </keep-alive>
</router-view>
</template>

<style lang="less" scoped>
html,body{
  background: #44f4f4;
  overflow-x: hidden;
  min-height: 100%;
}
#app{
  margin: 0 auto;
  background-color: #fff;
}

</style>
